package request

import (
	"gitee.com/cjsn/topsdk/ability254/domain"
	"gitee.com/cjsn/topsdk/util"
)

type TmallSerivcecenterServicerorderInsuranceCallbackRequest struct {
	/*
	   服务单投保信息回传入参     */
	ServiceInsuranceCallbackRequest *domain.TmallSerivcecenterServicerorderInsuranceCallbackServiceInsuranceCallbackRequest `json:"service_insurance_callback_request" required:"true" `
}

func (s *TmallSerivcecenterServicerorderInsuranceCallbackRequest) SetServiceInsuranceCallbackRequest(v domain.TmallSerivcecenterServicerorderInsuranceCallbackServiceInsuranceCallbackRequest) *TmallSerivcecenterServicerorderInsuranceCallbackRequest {
	s.ServiceInsuranceCallbackRequest = &v
	return s
}

func (req *TmallSerivcecenterServicerorderInsuranceCallbackRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.ServiceInsuranceCallbackRequest != nil {
		paramMap["service_insurance_callback_request"] = util.ConvertStruct(*req.ServiceInsuranceCallbackRequest)
	}
	return paramMap
}

func (req *TmallSerivcecenterServicerorderInsuranceCallbackRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
